﻿using System.Collections.Generic;
using HMIS.FrameWork;
using HMIS.Infrastructure.Core.Authority;

namespace HMIS.Infrastructure.Facade.Authority
{
	public interface IMenuFacade : IDomainFacade
	{
		IList<MenuNode> GetAlllist();
		bool IsFieldExist(string fieldName, string fieldValue, string id);
		void SaveOrUpdate(MenuNode entity);
		void Delete(string id);
		MenuNode Get(string id);
		MenuNode Load(string id);
		IList<ActionPermission> QueryActionPlist(string query, int start, int limit, out long total);
		IList<MenuNode> GetMenuListByRoleId(string roleId);
		IList<MenuNode> GetMenuListByUserId(string userId);
		IList<MenuNode> GetAllListByUserId(string userId);
	}
}
